#ifndef _TUNNEL_H_
#define _TUNNEL_H_

#define TUNNEL_VERSION      0x01

enum {
    TUNNEL_CMD_NONE = 0,
    TUNNEL_CMD_GO,
    TUNNEL_CMD_TX,
    TUNNEL_CMD_RX,
};


int tunnel_tx(int sock, uint32_t channel);
int tunnel_rx(int sock, uint32_t channel);
int tunnel_go(int sock);
int tunnel_get_req(int sock, uint8_t *cmd, uint32_t *channel);

#endif
